package com.ruoyi.common.utils.checkSql;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * AUTHOR : CREATED BY DALE MAO ON 2018/6/29
 * DESCRIPTION:
 * Time:2018/6/29 ----- ${Time}
 **/
public class DynamicDataSource extends AbstractRoutingDataSource {

    /**
     * 取得当前使用那个数据源。
     */

    protected Object determineCurrentLookupKey() {
        return DbContextHolder.getDbType();
    }
}
